package aiguigu07.encapsulation;

/**
 * ClassName: Employee
 * Package: aiguigu07.encapsulation
 * Description:
 *
 * @Author ZY
 * @Create 2024/10/10 21:57
 * @Version 1.0
 */
public class Employee {
    private String name;
    private char gender;
    private int age;
    private String phoneNumber;

    public void setName(String n){
        name = n;
    }

    public String getName(){
        return name;
    }

    public void setGender(char n){
        gender = n;
    }

    public char getGender(){
        return gender;
    }

    public void setAge(int n){
        age = n;
    }

    public int getAge(){
        return age;
    }

    public void setPhoneNumber(String n){
        phoneNumber = n;
    }

    public String getPhoneNumber(){
        return phoneNumber;
    }

    public String getInfo(){
        return name + "\t" + gender + "\t" + age + "\t" + phoneNumber;

 
    }

}
